package com.spring.demo1.eg1;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author vhans
 */
public class ServiceB {
    private ServiceA serviceA;

    @Autowired
    public void setServiceA(ServiceA serviceA) {
        this.serviceA = serviceA;
    }

    public ServiceA getServiceA() {
        return serviceA;
    }
}
